package com.flyco.modules.oms.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.flyco.modules.oms.entity.StmJdSendOrderItem;
import com.flyco.modules.oms.mapper.StmJdSendOrderItemMapper;
import com.flyco.modules.oms.service.IStmJdSendOrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 发货单明细
 * @Author: flyco
 * @Date:   2023-08-09
 * @Version: V1.0
 */
@Service
public class StmJdSendOrderItemServiceImpl extends ServiceImpl<StmJdSendOrderItemMapper, StmJdSendOrderItem> implements IStmJdSendOrderItemService {

    @Autowired
    private StmJdSendOrderItemMapper sendOrderItemMapper;

    @Override
    public List<StmJdSendOrderItem> getByJdSendOrderId(List<String> checkOutIdList){

        LambdaQueryWrapper<StmJdSendOrderItem> wrapper=new LambdaQueryWrapper<>();
        wrapper.in(StmJdSendOrderItem::getStockoutId,checkOutIdList);
        return sendOrderItemMapper.selectList(wrapper);
    }
}
